package edu.sctu.wujiayi.month05.day20150511;

/**
 * Created by user11 on 2015/5/12.
 */
public class ArrayOne {
    ArrayTwo[] arraytwos;
  public ArrayOne(ArrayTwo[] arraytwos){
      this.arraytwos = arraytwos;

  }
    public void judgeMent(){
        for(int i = 0;i<=arraytwos.length;i++){
            if(arraytwos[i].getAge()>20){
                System.out.println("成年"+arraytwos[i].getName());
            }
        }
    }


}
